<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
</head>
<body>
	${SESSION_USER.username },这是你的个人主页,<a href="logout">注销</a><br/>
	
	<form action="publishWeibo" method="post">
		<input type="text" name="content"/>
		<input type="submit" value="发布"/>
	</form>
	---------------------------------------------------<br/>
	
	<c:forEach items="${weiboPage.records}" var="item">
		---------------<br/>
		${item.content }    <a href="#">评论[${item.commentSize }]</a>
		---------------<br/>
	</c:forEach>
	
	<c:if test="${weiboPage.current-1>0 }">
		<a href="myPage?pageNow=${weiboPage.current-1}">上一页</a>
	</c:if>
	<c:if test="${weiboPage.current<weiboPage.pages }">
		<a href="myPage?pageNow=${weiboPage.current+1}">下一页</a>
	</c:if>
</body>
</html>